use native Xlib XConvertCase if it's available
authorManish Singh <yosh@src.gnome.org>
Sun, 28 Jun 1998 05:44:14 +0000 (05:44 +0000)
committerManish Singh <yosh@src.gnome.org>
Sun, 28 Jun 1998 05:44:14 +0000 (05:44 +0000)
-Yosh

12 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
acconfig.h
config.h.in
configure.in
gdk/gdk.c
gdk/x11/gdkmain-x11.c

index e9bc016d1ff2668712da64bc2305e737732f77dc..af2f165bb418bcd4ed2e4d23ded64ee8d2b3a282 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Jun 27 22:42:28 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * acconfig.h
+       * gdk/gdk.c: use native Xlib XConvertCase if it's available
+
 Sat Jun 27 15:44:46 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdkx_XConvertCase): compatibility function to provide
index e9bc016d1ff2668712da64bc2305e737732f77dc..af2f165bb418bcd4ed2e4d23ded64ee8d2b3a282 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jun 27 22:42:28 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * acconfig.h
+       * gdk/gdk.c: use native Xlib XConvertCase if it's available
+
 Sat Jun 27 15:44:46 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdkx_XConvertCase): compatibility function to provide
index e9bc016d1ff2668712da64bc2305e737732f77dc..af2f165bb418bcd4ed2e4d23ded64ee8d2b3a282 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jun 27 22:42:28 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * acconfig.h
+       * gdk/gdk.c: use native Xlib XConvertCase if it's available
+
 Sat Jun 27 15:44:46 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdkx_XConvertCase): compatibility function to provide
index e9bc016d1ff2668712da64bc2305e737732f77dc..af2f165bb418bcd4ed2e4d23ded64ee8d2b3a282 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jun 27 22:42:28 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * acconfig.h
+       * gdk/gdk.c: use native Xlib XConvertCase if it's available
+
 Sat Jun 27 15:44:46 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdkx_XConvertCase): compatibility function to provide
index e9bc016d1ff2668712da64bc2305e737732f77dc..af2f165bb418bcd4ed2e4d23ded64ee8d2b3a282 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jun 27 22:42:28 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * acconfig.h
+       * gdk/gdk.c: use native Xlib XConvertCase if it's available
+
 Sat Jun 27 15:44:46 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdkx_XConvertCase): compatibility function to provide
index e9bc016d1ff2668712da64bc2305e737732f77dc..af2f165bb418bcd4ed2e4d23ded64ee8d2b3a282 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jun 27 22:42:28 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * acconfig.h
+       * gdk/gdk.c: use native Xlib XConvertCase if it's available
+
 Sat Jun 27 15:44:46 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdkx_XConvertCase): compatibility function to provide
index e9bc016d1ff2668712da64bc2305e737732f77dc..af2f165bb418bcd4ed2e4d23ded64ee8d2b3a282 100644 (file)
@@ -1,3 +1,9 @@
+Sat Jun 27 22:42:28 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in
+       * acconfig.h
+       * gdk/gdk.c: use native Xlib XConvertCase if it's available
+
 Sat Jun 27 15:44:46 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdkx_XConvertCase): compatibility function to provide
index 0ccdca5385e1649f4a8328c9c41b5dd53fed80bb..aa20a8a18e7353256d44154106dfd04c4e812036 100644 (file)
@@ -22,6 +22,7 @@
 #undef HAVE_XSHM_H
 #undef HAVE_SHAPE_EXT
 #undef HAVE_SYS_SELECT_H
+#undef HAVE_XCONVERTCASE
 
 /* some systems do not allow to ipcrm pages prior to
  * actual usage, namely: OSF1 V3.2, SunOS 4.1.1, 5.5, 5.5.1, 5.6,
index d8bf68dbb0e439839544e00cb16b1cb8c93964cc..1c4ab3e3a5b689035113a10775ecd15835167045 100644 (file)
@@ -23,6 +23,7 @@
 #undef HAVE_XSHM_H
 #undef HAVE_SHAPE_EXT
 #undef HAVE_SYS_SELECT_H
+#undef HAVE_XCONVERTCASE
 
 /* some systems do not allow to ipcrm pages prior to
  * actual usage, namely: OSF1 V3.2, SunOS 4.1.1, 5.5, 5.5.1, 5.6,
index 0f6df07a3457142ad6108366d1695cda82b86110..32ab9845002a435f9144483219ea869bf67bd9d5 100644 (file)
@@ -33,7 +33,6 @@ AC_SUBST(LT_CURRENT)
 AC_SUBST(LT_REVISION)
 AC_SUBST(LT_AGE)
 
-
 # For automake.
 VERSION=$GTK_VERSION
 PACKAGE=gtk+
@@ -226,6 +225,13 @@ AC_CHECK_LIB(Xext, XShapeCombineMask,
       ,
       $x_libs)
 
+# Check for XConvertCase (X11R6 specific)
+
+AC_CHECK_LIB(X11, XConvertCase,
+      AC_DEFINE(HAVE_XCONVERTCASE),
+      ,
+      $x_libs)
+
 x_cflags="$X_CFLAGS"
 x_ldflags="$X_LDFLAGS $X_LIBS"
 
index 6fcdd286c68baf673c438a85d3c0b5db8c981d9d..603a77819cbc804b44cb1fb1aecee8c094c727b5 100644 (file)
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -127,6 +127,13 @@ static GdkAtom   gdk_dnd_check_types    (GdkWindow    *window,
 static void      gdk_print_atom         (GdkAtom       anatom);
 #endif
 
+#ifndef HAVE_XCONVERTCASE
+static void      gdkx_XConvertCase      (KeySym        symbol,
+                                        KeySym       *lower,
+                                        KeySym       *upper);
+#define XConvertCase gdkx_XConvertCase
+#endif
+
 /* 
  * old junk from offix, we might use it though so leave it 
  */
@@ -4343,6 +4350,7 @@ gdk_send_xevent (Window window, gboolean propagate, glong event_mask,
   return result && (gdk_error_code != -1);
 }
 
+#ifndef HAVE_XCONVERTCASE
 /* compatibility function from X11R6.3, since XConvertCase is not
  * supplied by X11R5.
  */
@@ -4472,6 +4480,7 @@ gdkx_XConvertCase (KeySym symbol,
 #endif /* GREEK */
     }
 }
+#endif
 
 gchar*
 gdk_keyval_name (guint        keyval)
@@ -4495,7 +4504,7 @@ gdk_keyval_to_upper (guint        keyval)
       KeySym lower_val = 0;
       KeySym upper_val = 0;
 
-      gdkx_XConvertCase (keyval, &lower_val, &upper_val);
+      XConvertCase (keyval, &lower_val, &upper_val);
       return upper_val;
     }
   return 0;
@@ -4509,7 +4518,7 @@ gdk_keyval_to_lower (guint        keyval)
       KeySym lower_val = 0;
       KeySym upper_val = 0;
 
-      gdkx_XConvertCase (keyval, &lower_val, &upper_val);
+      XConvertCase (keyval, &lower_val, &upper_val);
       return lower_val;
     }
   return 0;
@@ -4523,7 +4532,7 @@ gdk_keyval_is_upper (guint        keyval)
       KeySym lower_val = 0;
       KeySym upper_val = 0;
 
-      gdkx_XConvertCase (keyval, &lower_val, &upper_val);
+      XConvertCase (keyval, &lower_val, &upper_val);
       return upper_val == keyval;
     }
   return TRUE;
@@ -4537,7 +4546,7 @@ gdk_keyval_is_lower (guint        keyval)
       KeySym lower_val = 0;
       KeySym upper_val = 0;
 
-      gdkx_XConvertCase (keyval, &lower_val, &upper_val);
+      XConvertCase (keyval, &lower_val, &upper_val);
       return lower_val == keyval;
     }
   return TRUE;
index 6fcdd286c68baf673c438a85d3c0b5db8c981d9d..603a77819cbc804b44cb1fb1aecee8c094c727b5 100644 (file)
@@ -127,6 +127,13 @@ static GdkAtom   gdk_dnd_check_types    (GdkWindow    *window,
 static void      gdk_print_atom         (GdkAtom       anatom);
 #endif
 
+#ifndef HAVE_XCONVERTCASE
+static void      gdkx_XConvertCase      (KeySym        symbol,
+                                        KeySym       *lower,
+                                        KeySym       *upper);
+#define XConvertCase gdkx_XConvertCase
+#endif
+
 /* 
  * old junk from offix, we might use it though so leave it 
  */
@@ -4343,6 +4350,7 @@ gdk_send_xevent (Window window, gboolean propagate, glong event_mask,
   return result && (gdk_error_code != -1);
 }
 
+#ifndef HAVE_XCONVERTCASE
 /* compatibility function from X11R6.3, since XConvertCase is not
  * supplied by X11R5.
  */
@@ -4472,6 +4480,7 @@ gdkx_XConvertCase (KeySym symbol,
 #endif /* GREEK */
     }
 }
+#endif
 
 gchar*
 gdk_keyval_name (guint        keyval)
@@ -4495,7 +4504,7 @@ gdk_keyval_to_upper (guint        keyval)
       KeySym lower_val = 0;
       KeySym upper_val = 0;
 
-      gdkx_XConvertCase (keyval, &lower_val, &upper_val);
+      XConvertCase (keyval, &lower_val, &upper_val);
       return upper_val;
     }
   return 0;
@@ -4509,7 +4518,7 @@ gdk_keyval_to_lower (guint        keyval)
       KeySym lower_val = 0;
       KeySym upper_val = 0;
 
-      gdkx_XConvertCase (keyval, &lower_val, &upper_val);
+      XConvertCase (keyval, &lower_val, &upper_val);
       return lower_val;
     }
   return 0;
@@ -4523,7 +4532,7 @@ gdk_keyval_is_upper (guint        keyval)
       KeySym lower_val = 0;
       KeySym upper_val = 0;
 
-      gdkx_XConvertCase (keyval, &lower_val, &upper_val);
+      XConvertCase (keyval, &lower_val, &upper_val);
       return upper_val == keyval;
     }
   return TRUE;
@@ -4537,7 +4546,7 @@ gdk_keyval_is_lower (guint        keyval)
       KeySym lower_val = 0;
       KeySym upper_val = 0;
 
-      gdkx_XConvertCase (keyval, &lower_val, &upper_val);
+      XConvertCase (keyval, &lower_val, &upper_val);
       return lower_val == keyval;
     }
   return TRUE;